package com.qqtop10.manager.model.tltpay;

import java.io.IOException;
import java.util.Properties;

public class TranxCon {

	/**
	 * XML交易参数
	 */
	public String acctName = "张国光";
	public String acctNo = "6225882516636351";
	public String amount = "100000";// 交易金额
	public String bankcode = "0105";// 银行代码

	public String cerPath = "classpath:allinpay-pds.cer";
	
	public String merchantId = "200584000017487";

	// 商户号：200604000000445
	public String password = "111111";
	// 商户证书信息
	public String pfxPassword = "111111";
	public String pfxPath = "D:\\20058400001748704.p12";
	// ceshi
	/*
	 * public String cerPath= "config\\20080100000000104.cer"; public String
	 * merchantId = "200801000000001";
	 * 
	 * 
	 * //商户号：200604000000445 public String password = "111111"; //商户证书信息 public
	 * String pfxPassword = "111111"; public String pfxPath=
	 * "config\\20080100000000104.p12";
	 */

	public String sum = "200000";// 交易总金额
	public String tel = "13434343434";
	public String tltcerPath = null;
	// userName 商户用户名
	public String userName = "20058400001748704";

	public TranxCon() {
		Properties properties = new Properties();
		String prefixPath = getClass().getResource("/").getPath();
		prefixPath = prefixPath.substring(1, prefixPath.length());
		try {
			properties.load(getClass().getClassLoader().getResourceAsStream("config.properties"));
		} catch (IOException e) {
			e.printStackTrace();
		}
		pfxPath = prefixPath + properties.getProperty("tlf_a_p");
		cerPath = prefixPath + properties.getProperty("tlf_b_p");
		tltcerPath = prefixPath + properties.getProperty("tlf_cer");
//		System.out.println();
//		System.out.println();
//		System.out.println("=================");
//		System.out.println(prefixPath + properties.getProperty("tlf_a_p"));
//		System.out.println(prefixPath + properties.getProperty("tlf_b_p"));
//		System.out.println(prefixPath + properties.getProperty("tlf_cer"));
//		System.out.println("=================");
//		System.out.println();
//		System.out.println();
	}

	public String getAcctName() {
		return acctName;
	}

	public String getAcctNo() {
		return acctNo;
	}

	public String getAmount() {
		return amount;
	}

	public String getBankcode() {
		return bankcode;
	}

	public String getCerPath() {
		return cerPath;
	}

	public String getMerchantId() {
		return merchantId;
	}

	public String getPassword() {
		return password;
	}

	public String getPfxPassword() {
		return pfxPassword;
	}

	public String getPfxPath() {
		return pfxPath;
	}

	public String getSum() {
		return sum;
	}

	public String getTel() {
		return tel;
	}

	public String getTltcerPath() {
		return tltcerPath;
	}

	public String getUserName() {
		return userName;
	}

	public void setAcctName(String acctName) {
		this.acctName = acctName;
	}

	public void setAcctNo(String acctNo) {
		this.acctNo = acctNo;
	}

	public void setAmount(String amount) {
		this.amount = amount;
	}

	public void setBankcode(String bankcode) {
		this.bankcode = bankcode;
	}

	public void setCerPath(String cerPath) {
		this.cerPath = cerPath;
	}

	public void setMerchantId(String merchantId) {
		this.merchantId = merchantId;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public void setPfxPassword(String pfxPassword) {
		this.pfxPassword = pfxPassword;
	}

	public void setPfxPath(String pfxPath) {
		this.pfxPath = pfxPath;
	}

	public void setSum(String sum) {
		this.sum = sum;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public void setTltcerPath(String tltcerPath) {
		this.tltcerPath = tltcerPath;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

}
